import request from '../../utils/request'

// 轨迹管理列表
export const trackList = (params: any) => {
  return request.get('visit/travel/list', params)
}

// 点位列表 
export const addressList = (params: any) => {
  return request.get('visit/address/list', params)
}

// 部门列表 
export const departmentList = (params: any) => {
  return request.get('visit/travel/departmentlist', params)
}

// 添加 
export const trackAdd = (data:any) => {
  return request.post('visit/travel/add', data)
}

// 添加地址
export const addressAdd = (data:any) => {
  return request.post('visit/address/add', data)
}
// 删除地址 
export const addressDel = (params: any) => {
  return request.get('visit/address/del', params)
}
// 修改 
export const addressupd = (data: any) => {
  return request.post('visit/address/edit', data)
}
